String.prototype.format = function(){
	result = this;
	for( var i = 0; i < arguments.length; i++ ) {
		result = result.replace("{" + i + "}", arguments[i]);
	}
	return result;
};